package com.xlh.dao.statistic.ext;

import com.xlh.dto.user.UserInfoDTO;
import com.xlh.pojo.statistic.StatisticStudentCourse;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StudentCourseMapperExt {

    StatisticStudentCourse queryStatisticSum(@Param("courseId") Long courseId, @Param("classId") Long classId);

    List<StatisticStudentCourse> queryStatisticTime(@Param("userIds") List<Long> userIds);

    List<StatisticStudentCourse> queryStatisticInfo(@Param("courseId") Long courseId, @Param("classId") Long classId,
                                                    @Param("userInfo") String userInfo);

    List<UserInfoDTO> queryUser(@Param("courseId") Long courseId, @Param("classId") Long classId);

    void insertBatch(@Param("list") List<StatisticStudentCourse> list);

    void updateBatch(@Param("list") List<StatisticStudentCourse> list);

    Integer getMaxManifestScore(@Param("courseId") Long courseId, @Param("classId") Long classId);
}